﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;
using MovieRental.XmlDataService;

namespace MovieRental.Entities
{
    [DataContract]
    [KnownType(typeof(PersonalDiscountInfo))]
    [KnownType(typeof(TemporaryDiscountInfo))]
    public class DiscountInfo : BaseEntity<Guid>
    {
        public DiscountInfo()
        {
            Id = Guid.NewGuid();
        }

        public DiscountInfo(Guid id)
        {
            Id = id;
        }

        [DataMember]
        public double Value { set; get; }
    }
}
